//
//  ListSchedule.h
//  FMS
//
//  Created by Steven on 10/11/13.
//  Copyright (c) 2013 QGSVN. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "ScheduleCell.h"
#import "DatePickerViewController.h"
#import "FilterViewController.h"

@interface ListScheduleViewController : FMSViewController<NavBarViewDelegate,DatePickerViewDelegate, FilterViewDelegate, UITableViewDataSource, UITableViewDelegate>{
    
    NSMutableDictionary *dictLanguage;
    NSMutableArray *arraySchedule;
    
    NSMutableDictionary *dictCategory;
    
    __weak IBOutlet UIButton *btnStartDate;
    __weak IBOutlet UIButton *btnEndDate;
    __weak IBOutlet UIButton *btnCategory;
    
    NSString *startDateStr;
    NSString *endDateStr;
    int indexSelectDate;//flag select start/end date
    
    int indexSchedule;
    BOOL isLoadMore;
    BOOL didReadyLoadMore;
    
    UIButton *btnCurtain;
}
@property (weak, nonatomic) IBOutlet UITableView *tbSchedule;

- (IBAction)btnSwitchCalendarClick:(id)sender;
- (IBAction)selectFromDate:(id)sender;
- (IBAction)selectToDate:(id)sender;
- (IBAction)selectMaintenanceType:(id)sender;

- (void)listScheduleByType;
- (void)selectCategory:(NSMutableDictionary *)category;
- (void)updateScheduleInfo:(NSMutableDictionary*)dict isEdit:(BOOL)isEdit;

@end
